using System;
using System.Collections.Generic;
using System.Diagnostics;

namespace mebc
{
    public class FuncPart<TInput, TResult> : Part
    {
        public FuncPart(Func<TInput, TResult> function)
        {
            Process<TInput>(_ => Send(function(_)));
        }
    }
}